Repository navigation
fix(ai): the gateway sweep's URL error names no credential - #2400
Merged
Merged
Conversation
`_validate_http_url` in `gateway_bench.py` raised a `ValueError` that held the full URL. `run_level` writes the error text into `last_error`, so a backend URL with userinfo or a query token put its credential into the sweep's JSON. The error text is now fixed and names no part of the URL. A comment says why the module raises the standard library's `ValueError`: it runs in a container without `devops_cli`.
Owner
Author
|
Test evidence:
Pending a person: review the diff in tuicr ( |
dan-petty
marked this pull request as ready for review
October 28, 2026 13:58
dan-petty
pushed a commit
that referenced
this pull request
Oct 28, 2026
🤖 I have created a release *beep* *boop* --- ## [0.8.3](v0.8.2...v0.8.3) (2026-10-28) ### Bug Fixes * **ai:** the gateway sweep's URL error names no credential ([#2400](#2400)) ([2e6f1fd](2e6f1fd)), closes [#909](#909) * **config:** exit 1 when audit-keys finds a plaintext secret ([#2401](#2401)) ([ad0114f](ad0114f)), closes [#1469](#1469) * **security:** drop the Go ignores that the pinned gh build does not need ([#2402](#2402)) ([6052083](6052083)), closes [#1492](#1492) * **security:** refuse every loader and shell key that loads code into a child ([#2405](#2405)) ([86d5bce](86d5bce)), closes [#2205](#2205) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_validate_http_urlinsrc/devops_cli/ai/gateway_bench.pyraised aValueErrorthat held the full URL.run_levelwrites the text of that error intolast_error, and the sweep's JSON and the stored run ofdevops ai gateway tunehold it. A backend URL with userinfo or a query token thus put its credential into the benchmark output.urlparse("user:pass@host")returnsuseras the scheme.raisesays why the module raises the standard library'sValueErrorand notInvalidURLError: the module runs in apython:3.14-slimcontainer withoutdevops_cli, and_get_textandrun_levelcatch the error.ftp://user:s3cr3t@example.com/x?token=t0k3ntorun_leveland asserts thatlast_errorholds neither credential.test_gateway_bench_imports_only_standard_libraryalready holds the module to the standard library, so the change adds no second test for that rule.Closes #909
Change:
openspec/changes/archive/2026-10-28-909-gateway-bench-stdlib/